package net.cityside.jlearn.performance;

public class MemorySpy {

	public static final void dumpMemInfo() {
		System.out.println(String.format(
				"Runtime memory: max=%d, total=%d, free=%d",
				Long.valueOf(Runtime.getRuntime().maxMemory() / 1024),
				Long.valueOf(Runtime.getRuntime().totalMemory() / 1024),
				Long.valueOf(Runtime.getRuntime().freeMemory() / 1024)));
	}
}
